/*
 * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.analysis.api.fe10.test.cases.generated.cases.types;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.analysis.api.fe10.test.configurator.AnalysisApiFe10TestConfiguratorFactory;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfiguratorFactoryData;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfigurator;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.TestModuleKind;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.FrontendKind;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisSessionMode;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiMode;
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.types.AbstractTypeByDeclarationReturnTypeTest;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Test;

import java.io.File;
import java.util.regex.Pattern;

/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/types/byDeclarationReturnType")
@TestDataPath("$PROJECT_ROOT")
public class Fe10IdeNormalAnalysisSourceModuleTypeByDeclarationReturnTypeTestGenerated extends AbstractTypeByDeclarationReturnTypeTest {
  @NotNull
  @Override
  public AnalysisApiTestConfigurator getConfigurator() {
    return AnalysisApiFe10TestConfiguratorFactory.INSTANCE.createConfigurator(
      new AnalysisApiTestConfiguratorFactoryData(
        FrontendKind.Fe10,
        TestModuleKind.Source,
        AnalysisSessionMode.Normal,
        AnalysisApiMode.Ide
      )
    );
  }

  @Test
  public void testAllFilesPresentInByDeclarationReturnType() {
    KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/types/byDeclarationReturnType"), Pattern.compile("^(.+)\\.kt$"), null, true);
  }

  @Test
  @TestMetadata("anonymousFunction.kt")
  public void testAnonymousFunction() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/anonymousFunction.kt");
  }

  @Test
  @TestMetadata("functionTypeWithReceiverAndNamedParameters.kt")
  public void testFunctionTypeWithReceiverAndNamedParameters() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/functionTypeWithReceiverAndNamedParameters.kt");
  }

  @Test
  @TestMetadata("functionTypeWithReceiverAndNamedParametersFromExtensionReference.kt")
  public void testFunctionTypeWithReceiverAndNamedParametersFromExtensionReference() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/functionTypeWithReceiverAndNamedParametersFromExtensionReference.kt");
  }

  @Test
  @TestMetadata("functionTypeWithReceiverAndNamedParametersFromReference.kt")
  public void testFunctionTypeWithReceiverAndNamedParametersFromReference() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/functionTypeWithReceiverAndNamedParametersFromReference.kt");
  }

  @Test
  @TestMetadata("functionWithAnnotationOnParameterType.kt")
  public void testFunctionWithAnnotationOnParameterType() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/functionWithAnnotationOnParameterType.kt");
  }

  @Test
  @TestMetadata("lambdaWithAnnotatedParameterName.kt")
  public void testLambdaWithAnnotatedParameterName() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/lambdaWithAnnotatedParameterName.kt");
  }

  @Test
  @TestMetadata("localClassType.kt")
  public void testLocalClassType() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/localClassType.kt");
  }

  @Test
  @TestMetadata("localClassWithTypeArgumentsType.kt")
  public void testLocalClassWithTypeArgumentsType() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/localClassWithTypeArgumentsType.kt");
  }

  @Test
  @TestMetadata("localNestedClassType.kt")
  public void testLocalNestedClassType() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/localNestedClassType.kt");
  }

  @Test
  @TestMetadata("localTypeAlias.kt")
  public void testLocalTypeAlias() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/localTypeAlias.kt");
  }

  @Test
  @TestMetadata("referenceToExtensionFunctionOfStarProjectionType.kt")
  public void testReferenceToExtensionFunctionOfStarProjectionType() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/referenceToExtensionFunctionOfStarProjectionType.kt");
  }

  @Test
  @TestMetadata("referenceToFunctionWithVarargParameter.kt")
  public void testReferenceToFunctionWithVarargParameter() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/referenceToFunctionWithVarargParameter.kt");
  }

  @Test
  @TestMetadata("referenceToMemberFunctionOfStarProjectionType.kt")
  public void testReferenceToMemberFunctionOfStarProjectionType() {
    runTest("analysis/analysis-api/testData/types/byDeclarationReturnType/referenceToMemberFunctionOfStarProjectionType.kt");
  }
}
